package com.example.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: AlbertHPW
 * @Date: 2025/6/15 19:41
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;
    // 构造器
    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}

